Start the GTK + learning journey and start the gtk journey
00. Overview of carrying bag 1--GUI
01. Overview of carrying bag 2--GTK
02. Build a 3--GTK environment (Linux)
03. Build a 4--GTK environment (windows)
04. embark on journey 1-A simple
Easy Video Player-full screen playbackI. Description of the courseLast time we used GTK+LIBVLC to achieve a simple video player, can be clicked button Tentative and stop playing video, as well as synchronized display of video playback progress, but
Original article link Introduction
We know that GUI applicationsProgramAll are event-driven. Most of these events come from users, such as Keyboard Events, mouse events, or pen point events. There are also some events from the system, such as
I. mplayer
1. What is mplayer?Mplayer is a multimedia player in Linux. It is easy to use and supports common video and music formats.
2. Why is mplayer used?In Linux, multimedia players mainly use xine, mplayer, and gstreamer.
1) mplayer is easy
Timer functions
The timer function can be used to time an operation (for example, to record how long an operation has taken ). The first step to use it is to use the G _ t I m e r _ N E W () function to create a timer, then use the G _ t I m e r _ s
I recorded the go Getting Started video
Go language Development Combat: Https://pan.baidu.com/s/1bqOR9qZGo language GUI Programming: Https://pan.baidu.com/s/13yoUhqEUyrT_9bpi7K0rYQ first knowledge of GTK
01. GUI Overview02. GTK Introduction03,
Glib
Next >>>
Timer
CalculationThe timer function can be used to time the operation (that is, to view the time consumed by the operation ). Use the g_timer_new () function to create a new timer, and then useG_timer_start () function to
You can use g_timeout_add () or g_timeout_add_full () and g_timeout_add () to set the values of g_timeout_add () as follows:Guint g_timeout_add (guint interval,GsourcefuncFunction,GpointerData );The first parameter is the time interval, in
GLib is an underlying library that provides many useful definitions and functions when creating GDK and GTK applications.
Includes definitions of basic types and restrictions, standard macros, type conversions, byte orders, storage allocations,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.